﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Collections;
using SteriaMummert.SharePoint.SoftwareFactoryLite.Editors;
using System.Drawing.Design;

namespace SMC.SPALM.Types
{
    [Browsable(true)]
    [TypeConverter(typeof(ExpandableObjectConverter)), CategoryAttribute("Migration Settings")]
    public class FeatureStapling
	{
        private NameValueItem _FeatureID = new NameValueItem("","");
        private NameValueItem _SiteTemplate = new NameValueItem("", "");

        public FeatureStapling()
        {
        }

        [Category("TestProperties")]
        [Editor(typeof(SharePointConfigurationFeatureEditor), typeof(UITypeEditor))]
        public NameValueItem FeatureID
        {
            get { return _FeatureID; }
            set 
            { 
                if(value != null)
                {
                    _FeatureID = value;
                }
            }
        }

        [Category("TestProperties")]
        [Editor(typeof(SharePointConfigurationSiteTemplateEditor), typeof(UITypeEditor))]
        public NameValueItem SiteTemplate
        {
            get { return _SiteTemplate; }
            set 
            { 
                if(value != null)
                {
                    _SiteTemplate = value;
                }
            }
        }
    }
}
